if ('${list==null}' == 'true') {
    // document.getElementById('print').style="display: block"; 
    document.getElementById('number_div').innerHTML = window.localStorage.getItem('number');
    document.getElementById('date_div').innerHTML = window.localStorage.getItem('date');
    document.getElementById('name_div').innerHTML = window.localStorage.getItem('name');
    document.getElementById('sex_div').innerHTML = window.localStorage.getItem('sex');
    document.getElementById('age_div').innerHTML = window.localStorage.getItem('age');
    document.getElementById('expensetype_div').innerHTML = window.localStorage.getItem('expensetype');
    document.getElementById('diagnosis_div').innerHTML = window.localStorage.getItem('diagnosis');
    document.getElementById('department_div').innerHTML = window.localStorage.getItem('department');
    document.getElementById('rp_div').innerHTML = window.localStorage.getItem('rp');
    document.getElementById('deployment_div').innerHTML = window.localStorage.getItem('deployment');
    document.getElementById('review_div').innerHTML = window.localStorage.getItem('review');
    document.getElementById('amount_div').innerHTML = window.localStorage.getItem('amount');
    window.print();
} else {
    function print_mr() {
        window.print();
    }
}

// 打印前事件
// window.addEventListener('beforeprint', () => {
//     document.body.innerHTML = '正在打印...';
// });
// 打印后事件
window.addEventListener('afterprint', () => {
    history.back(-1);
});